// waveeditorView.h : interface of the CWaveeditorView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_WAVEEDITORVIEW_H__7E86C4F5_C9B0_4C89_B275_3BC798637E2F__INCLUDED_)
#define AFX_WAVEEDITORVIEW_H__7E86C4F5_C9B0_4C89_B275_3BC798637E2F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class MainTreeView : public CTreeView
{
	friend ZWaveeditorDoc;
protected: // create from serialization only
	MainTreeView();
	DECLARE_DYNCREATE(MainTreeView)
// Attributes
public:
	ZWaveeditorDoc* GetDocument();
	CTreeCtrl		&ctree;
	CTreeCtrl		temptree;
	DWORD			treedata;
private:
	CImageList		*myImage;
	// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CWaveeditorView)
	public:
	virtual void		OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL		PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void		OnInitialUpdate		(); // called first time after construct
	virtual BOOL		OnPreparePrinting	(CPrintInfo* pInfo);
	virtual void		OnBeginPrinting		(CDC* pDC, CPrintInfo* pInfo);
	virtual void		OnEndPrinting		(CDC* pDC, CPrintInfo* pInfo);
	virtual void		OnUpdate			(CView* pSender, LPARAM lHint, CObject* pHint);
	virtual void		OnActivateView		(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
	//}}AFX_VIRTUAL

// Implementation
public:
	void		ChangeWindowTitle();
	int			MakeNewList();
	virtual		~MainTreeView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CWaveeditorView)
	afx_msg void OnUpdateSelectedScript();
	afx_msg void OnSavetovectorfile();
	afx_msg void OnKillfocus(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnIteminfo();
	afx_msg void OnEditscriptfile();
	afx_msg void OnDblclk(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnAddScriptOrLog();
	afx_msg void OnDeletescript();
	afx_msg void OnSavealltovectorfile();
	afx_msg void OnFramegraph();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	void ClearGarbage(CTreeCtrl* _tree, DWORD num);
	void ClearStep(CTreeCtrl* _tree, HTREEITEM point, DWORD num);
};

#ifndef _DEBUG  // debug version in waveeditorView.cpp
inline ZWaveeditorDoc* MainTreeView::GetDocument()
   { return (ZWaveeditorDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_WAVEEDITORVIEW_H__7E86C4F5_C9B0_4C89_B275_3BC798637E2F__INCLUDED_)
